gtk/gskpango.c: Use g_snprintf()
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 20 Nov 2017 07:05:28 +0000 (15:05 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 21 Nov 2017 06:22:23 +0000 (14:22 +0800)
This fixes the build of GTK+ master on Visual Studio 2013 (and possibly
others) as snprintf() may not be supported even if the required C99
features are supported by the compiler.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

gtk/gskpango.c

index ff91d08f1ca302d6377b0a01ba5192613e800171..2021e92ae8915c971875d340e8f4146af3c68c5d 100644 (file)
@@ -126,7 +126,7 @@ gsk_pango_renderer_show_text_glyphs (PangoRenderer        *renderer,
   if (crenderer->snapshot->record_names)
     {
       char name[64];
-      snprintf (name, sizeof (name), "Glyphs<%d>", glyphs->num_glyphs);
+      g_snprintf (name, sizeof (name), "Glyphs<%d>", glyphs->num_glyphs);
       gsk_render_node_set_name (node, name);
     }